<?php
class Tgiachidoan extends AppModel {

	var $name = 'Tgiachidoan';
	var $validate = array(
		'chidoansv_id' => array('notempty'),
		'sinhvien_id' => array('notempty'),
		'ghichu' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Chidoansv' => array(
			'className' => 'Chidoansv',
			'foreignKey' => 'chidoansv_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Sinhvien' => array(
			'className' => 'Sinhvien',
			'foreignKey' => 'sinhvien_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>